package com.zhang.demo.spring.bean;

import java.util.StringJoiner;

public class Message {
    private String id;

    private String data;

    public Message(String id, String data) {
        this.id = id;
        this.data = data;
    }

    public Message() {
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Message.class.getSimpleName() + "[", "]")
                .add("id='" + id + "'")
                .add("data='" + data + "'")
                .toString();
    }
}
